<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="mall/header::head-fragment('张院百货商城-选择支付方式','pay-select')">
</head>

<body>
    <div class="page-main">
        <div class="container confirm-box">
            <form target="_blank" action="#" id="J_payForm" method="post">
                <div class="section section-order">
                    <div class="order-info clearfix">
                        <div class="fl">
                            <h2 class="title">订单提交成功！去付款咯～</h2>
                            <input type="hidden" id="orderNoValue" th:value="${orderNo}">
                            <p class="order-time" id="J_deliverDesc">订单号：
                                <th:block th:text="${orderNo}"></th:block>
                            </p>
                        </div>
                        <div class="fr">
                            <p class="total">
                                应付总额：<span class="money"><em>
                                        <th:block th:text="${totalPrice+'.00'}"></th:block>
                                    </em>元</span>
                            </p>
                        </div>
                    </div>
                </div>
                <div class="section section-payment">
                    <div class="cash-title" id="J_cashTitle">
                        选择以下支付方式付款
                    </div>

                    <div class="payment-box ">
                        <div class="payment-header clearfix">
                            <h3 class="title">支付平台</h3>
                            <span class="desc"></span>
                        </div>
                        <div class="payment-body">
                            <ul class="clearfix payment-list J_paymentList J_linksign-customize">
                                <li class="J_alipay">
                                    <input type="radio" name="payOnlineBank" id="alipay" value="alipay">
                                    <img onclick="payOrder(1)" th:src="@{/mall/image/pay/payOnline_zfb.png}" alt="支付宝"
                                        style="margin-left: 0;"></li>
                            </ul>
                        </div>
                    </div>


                </div>
            </form>
        </div>
    </div>

    <div th:replace="mall/footer::footer-fragment"></div>

    <!-- jQuery -->
    <script th:src="@{/admin/plugins/jquery/jquery.min.js}"></script>
    <script type="text/javascript">
        //给出提醒
        $('.J_bank').click(function () {
            alert('暂不支持，请耐心等候');
        })

        function payOrder(payType) {
            var orderNo = $("#orderNoValue").val();
            window.location.href = '/payPage?orderNo=' + orderNo + "&payType=" + payType;
        }
    </script>
</body>

</html>